package com.iflytek.service;

import com.github.pagehelper.PageInfo;
import com.iflytek.entity.Administrator;
import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.query.AdministratorQuery;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【administrator】的数据库操作Service
 * @createDate 2022-09-24 14:41:19
 */
public interface AdministratorService extends IService<Administrator> {
    PageInfo<Administrator> getAllAdministratorList(AdministratorQuery query, Integer pageName, Integer pageSize);


    Administrator getAdminPhone(String phone);

    Administrator getAdminAccount(String account);

    Administrator getAdminEmail(String phone);

    Administrator getByName(String name);

    int delBatchByIds(List<String> ids);

    int deleteById(Integer id);

    int updateMsgById(Administrator administrator);

    int saveAdministrator(Administrator administrator);
}
